<?php

namespace app\common\validate;

use think\Validate;

class Vgoods extends Validate
{
    // 验证规则
    protected $rule = [
        'goods_name'  =>  'require',
        'cate_id' => 'require',
        'goods_pic' => 'require',
       // 'goods_detail' => 'require',
    ];

    // 字段
    protected $field = [
        'goods_name' => '商品名称',
        'goods_cate' => '商品分类',
        'goods_pic' => '商品头图',
        
    ];

    // 提示信息
    protected $message = [
        'tel.regex' => '手机格式不正确',
    ];
    
    // 场景
    protected $scene = [
      
    ];

}